package com.sduept.nwld.dataserver.util;

import java.util.Comparator;

import com.sduept.bigdata.fault.entity.FaultReportComponentDetail;

public class ComponetActionTimeComparator implements Comparator<FaultReportComponentDetail>{

	@Override
	public int compare(FaultReportComponentDetail o1,
			FaultReportComponentDetail o2) {
		if (o1.getActionTime() > o2.getActionTime()) {
			return 1;
		} else if (o1.getActionTime() == o2.getActionTime()) {
			return 0;
		} else {
			return -1;
		}
	}

}
